<%- include header %>
    <section class="container u_main_box">
        <div class="u_main_inner">
            <div class="u_main">
                <ul class="u_main_ul">
                    <% posts.forEach(function (post, index) { %>
                        <li @click.stop="goTo" data-url="<%= post._id %>">
                            <div class="u_ar_info">

                                <!-- 文章标签 -->
                                <%- include label %>
                                <a href="/u/<%= post.name %>">
                                    <%= post.name %>
                                </a>
                                <span>
                                    <%= post.time.minute %>
                                </span>
                                <% if (user && user.name==post.name) { %>
                                    <a href="/edit/<%= post._id %>" class="u_edit">·编辑</a>
                                    <% } %>
                            </div>
                            <div class="u_ar_title">
                                <a href="/detail/<%= post._id %>">
                                    <%= post.title %>
                                </a>
                            </div>
                            <div class="u_ar_info">
                                <ul>
                                    <li class="u_ar_li">
                                        <!-- <a href="javascript:;" @click.stop="bigNice('<%= post._id %>')">
                                            <img src=""
                                                class="icon">
                                            <span class="u_like_num">
                                                <%= typeof (post.like) != "undefined" ? post.like : 0 %>
                                            </span>
                                        </a> -->
                                        <a href="javascript:;">
                                            <i class="iconfont">&#xe661;</i>
                                            <span class="u_like_num" style="font-weight:normal;">
                                                <%= typeof (post.read) != "undefined" ? post.read : 0 %>
                                            </span>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </li>
                        <% }) %>
                </ul>
                <% if (!posts.length) {%>
                    <div class="u_nodata">
                        暂无文章
                    </div>
                <% } %>
            </div>
            <%- include paging %>
        </div>
        <div class="u_small">
            <div class="u_inter">
                    <div class="u_c_tit">
                            你可能感兴趣的人
                        </div>
                        <ul class="u_userlist">
                            <li>
                                <a href="<%= '/u/japin' %>">
                                    <p class="u_user_head">
                                        <img style="width:40%;"  src=""
                                            alt="">
                                    </p>
                                    <span>japin</span>
                                </a>
                            </li>
                        </ul>
            </div>
        </div>
    </section>
    <%- include footer %>